package com.liuhouse.mapper;

import com.liuhouse.pojo.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 角色信息表 Mapper 接口
 * </p>
 *
 * @author liuhouse
 * @since 2024-01-27
 */
public interface RoleMapper extends BaseMapper<Role> {

    List<String> selectRoleKeyByOtherUserId(@Param("userId") Long userId);

    //修改用户 - 根据用户id查询对应的角色信息id，用作选中角色
    List<Long> selectRoleIdByUserId(Long userId);
}
